home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8648 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: blanket.mitre.org!philabs!nobody
  2. From: dcv@philabs.research.philips.com (Dinesh Verma)
  3. Newsgroups: comp.lang.c,comp.programming
  4. Subject: Coding Standards for C using threads
  5. Date: 5 Mar 1996 09:58:04 -0500
  6. Organization: Philips Laboratories, Briarcliff, NY 10510
  7. Distribution: inet
  8. Message-ID: <4hhkps$1qu@onyx.philabs.research.philips.com>
  9. NNTP-Posting-Host: onyx.philabs.research.philips.com
  10. Keywords: Coding Standards/Guidelines for thread-based programming
  11.  
  12. Hi,
  13.  I am looking for C coding guidelines/recommended practices which should be
  14. used when coding in the presence of threads. Do you know of any such guidelines
  15. which exists out there.
  16.  Our team is quite experienced in both C and programming using threads. So, we
  17. are not looking for tutorials but for safe practices that should be followed.
  18. We have found severed coding guidelines/standards that deal with C programming,
  19. but we have not found any guidelines dealing explicity with systems that 
  20. deal with threads or light-weight process programming. 
  21.  We are looking for guidelines that will contain:
  22.  
  23.   1. Any data-structure that could be accessed by multiple threads should be
  24. locked before modifying. 
  25.   2. Any variable that can be shared between two threads must be allocated on
  26. the heap and not the stack.
  27.  .....
  28.  
  29.  I hope I have made clarified what I am looking for. We can develop such a 
  30. guidelines on our own experience, but if you already has such a canonical
  31. list, and are willing to share it, we would be most thankful.
  32.  
  33.  Please reply by e-mail, and I will summarize them in the newgroup.
  34. Regards,
  35. Dinesh Verma
  36. dcv@philabs.philips.com
  37.  
  38.